package com.tuanzi.loan.core.repository;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import com.tuanzi.loan.core.entity.BaseEntity;

/**
 * @author Ray 2017/09/21
 */
@NoRepositoryBean
public interface JPABaseRepository<T extends BaseEntity, ID extends Serializable> extends
        JpaRepository<T, ID> {

    List<T> findAllByEnableTrue();

    List<T> findAllByEnableFalse();

}
